package com.genius.reservation.common;

import lombok.Data;


public enum ErrorCode {

     SERVER_ERROR("服务器错误",500),
     PARAMETER_ERROR("参数错误",1001),
    OK("通过",0),
    NO("失败",-1);
    private String msg;
    private int code;
    ErrorCode(String msg,int code) {
        this.msg = msg;
        this.code = code;
    }

    public int getCode(){
        return this.code;
    }

    public String getMsg() {
        return msg;
    }

}
